package com.fw.ui.util;

import com.vaadin.ui.UI;

public class ApplicationHolder {

    private static ThreadLocal<UI> app = new ThreadLocal<UI>();

    public static void setApplication(UI application) {
	app.set(application);
    }

    public static void resetApplication() {
	app.remove();
    }

    public static UI getApplication() {
	return app.get();
    }

}
